<?php

namespace app\api\service;


use app\api\model\CouponOrder;

class MovieOrder extends CommonService
{
    public function getOrderDetail($key)
    {
        $couponOrder = CouponOrder::query()->where('order_id|id', $key)
            ->with(['movieOrder'])
            ->append(['real_ticket_image', 'plan_type'])
            ->find();
        if (!$couponOrder) {
            return fail('订单不存在,请稍后再试');
        }
        return success('', $couponOrder);
    }
}
